package com.training.bowlapp.service;
import org.junit.BeforeClass;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.training.persistence.dao.PlayerDao;
import com.training.persistence.entity.Player;


public class BaseJUnitTestCase {

	protected static UserService service;
	protected static ClassPathXmlApplicationContext context;
	protected String userName;
	protected String password;

	protected static final String USER_NAME = "boone007";
	protected static final String PASSWORD = "1234";

	
	@BeforeClass
	public static void initialize() {
		System.err.println("BaseJunitTestCase");
		try {
			 context = new ClassPathXmlApplicationContext(
			        new String[] {"beans.xml"});

						
			service = (UserService) context.getBean("userService");
		
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
